From f9bd36fd60eb47225666984346fc328f8d41f199 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Mon, 24 Feb 2014 17:49:44 +0000 Subject: [PATCH] Fix a leak in googledir that I introduced yesterday. --- gpsbabel/googledir.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gpsbabel/googledir.cc b/gpsbabel/googledir.cc index 90b2d6171..06f8b260e 100644 --- a/gpsbabel/googledir.cc +++ b/gpsbabel/googledir.cc @@ -106,7 +106,9 @@ goog_poly_e(xg_string args, const QXmlStreamAttributes*) utf_string utf; utf.is_html = 1; utf.utfstring = instructions; - routehead->rte_desc = strip_html(&utf); + char *s = strip_html(&utf); + routehead->rte_desc = s; + xfree(s); instructions = QString(); } } -- 2.30.2